package cn.yuyiling.jelly.qa.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class AnswerDTO implements Serializable {
    private String id;

    private String type = "answer";

    private List<String> knowledgePoints;

    private Content content;

    private Metadata metadata;

    @Data
    @NoArgsConstructor
    public static class Content implements Serializable {
        private String text;
        private String format;
        private List<Attachment> attachments;
    }

    @Data
    @NoArgsConstructor
    public static class Attachment implements Serializable {
        private String type;
        private String url;
        private String caption;
    }

    @Data
    @NoArgsConstructor
    public static class Metadata implements Serializable {
        private int aiEvaluation;

        private boolean flagged;
        private List<String> tags;
        private String visibility;
    }
}
